package day04; // 猜数字小游戏
import java.util.Scanner;
public class LianXiDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = (int)(Math.random()*999999999+1);// 数字随机.
        System.out.println("猜数字小游戏");
        System.out.println("请输入数字：");
        int guess = scan.nextInt();
        while (guess!=num){
            if (guess>num){
                System.out.println("猜的太大了,你是傻b么？");
            }else {
                System.out.println("猜小了！你能不能聪明点？");
            }
            System.out.println("给你个机会,给老子继续猜！");
            System.out.println("请重新输入数字：");
            guess = scan.nextInt();
        }
        System.out.println("小傻b还挺聪明的,算你猜对了.");


    }
}
